package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ArtistEditLogMapper;
import com.ruoyi.system.domain.ArtistEditLog;
import com.ruoyi.system.service.IArtistEditLogService;

/**
 * 艺人修改记录Service业务层处理
 * 
 * @author Yaphets
 * @date 2024-07-05
 */
@Service
public class ArtistEditLogServiceImpl implements IArtistEditLogService 
{
    @Autowired
    private ArtistEditLogMapper artistEditLogMapper;

    /**
     * 查询艺人修改记录
     * 
     * @param id 艺人修改记录主键
     * @return 艺人修改记录
     */
    @Override
    public ArtistEditLog selectArtistEditLogById(Long id)
    {
        return artistEditLogMapper.selectArtistEditLogById(id);
    }

    /**
     * 查询艺人修改记录列表
     * 
     * @param artistEditLog 艺人修改记录
     * @return 艺人修改记录
     */
    @Override
    public List<ArtistEditLog> selectArtistEditLogList(ArtistEditLog artistEditLog)
    {
        return artistEditLogMapper.selectArtistEditLogList(artistEditLog);
    }

    /**
     * 新增艺人修改记录
     * 
     * @param artistEditLog 艺人修改记录
     * @return 结果
     */
    @Override
    public int insertArtistEditLog(ArtistEditLog artistEditLog)
    {
        return artistEditLogMapper.insertArtistEditLog(artistEditLog);
    }

    /**
     * 修改艺人修改记录
     * 
     * @param artistEditLog 艺人修改记录
     * @return 结果
     */
    @Override
    public int updateArtistEditLog(ArtistEditLog artistEditLog)
    {
        return artistEditLogMapper.updateArtistEditLog(artistEditLog);
    }

    /**
     * 批量删除艺人修改记录
     * 
     * @param ids 需要删除的艺人修改记录主键
     * @return 结果
     */
    @Override
    public int deleteArtistEditLogByIds(Long[] ids)
    {
        return artistEditLogMapper.deleteArtistEditLogByIds(ids);
    }

    /**
     * 删除艺人修改记录信息
     * 
     * @param id 艺人修改记录主键
     * @return 结果
     */
    @Override
    public int deleteArtistEditLogById(Long id)
    {
        return artistEditLogMapper.deleteArtistEditLogById(id);
    }
}
